package com.cndw.kungfu.model.battle.buff;

/**
 * 加防御
 * 
 * @author fantadust [9677889@qq.com]
 * @date 2011-5-26 下午04:38:10
 */
public class Buff502 extends BuffAbstract {

	private int fixValue = 0;

	@Override
	public void initTask() {
		fixValue = (target.getDefense() - target.getFixDefense()) * buffMode.getEffectValue() / 100;
		target.alterFixDefense(fixValue);
	}

	@Override
	public void endTask() {
		target.alterFixDefense(-fixValue);
	}

}
